import 'dart:convert';

import 'package:safetymonitor/generated/json/base/json_field.dart';
import 'package:safetymonitor/generated/json/get_message_entity.g.dart';

export 'package:safetymonitor/generated/json/get_message_entity.g.dart';

@JsonSerializable()
class GetMessageEntity {

	GetMessageEntity({
		this.id,
		this.userId,
		this.userType,
		this.templateId,
		this.templateCode,
		this.templateNickname,
		this.templateContent,
		this.templateType,
		this.templateParams,
		this.readStatus,
		this.readTime,
		this.createTime,
});

	factory GetMessageEntity.fromJson(Map<String, dynamic> json) => $GetMessageEntityFromJson(json);
	int? id = 0;
	int? userId = 0;
	String? userType = '';
	int? templateId = 0;
	String? templateCode = '';
	String? templateNickname = '';
	String? title = '';
	String? templateContent = '';
	int? templateType = 0;
	dynamic templateParams;
	bool? readStatus = false;
	String? readTime = '';
	String? createTime = '';

	Map<String, dynamic> toJson() => $GetMessageEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}
